<?php if(!empty($banner)): ?>
  <td align="left" valign="top">
  	<table width="510" height="100" border="0" align="center" cellpadding="0" cellspacing="0">
      <tr><td width="30"></td>
        <td width="450" align="center" valign="middle">
        	<?php echo link_to(
        					image_tag(
		    					'/uploads/' . $banner[0]->getUname()
		    					, array(
		    						'title' => $banner[0]->getName()
		                        	, 'alt' => $banner[0]->getName()
		                            , 'width' => '450'
		                            , 'height' => '100'
		                            , 'border' => '0'
		                         	)
		                         )
		                     , 'banner/go?to=' . $banner[0]->getUid()
	                         //, $banner[0]->getUrl()
	                         , array(
	                         	'popup' => true
	                         	, 'style' => 'border:none;'
	                         )
                         )?>

        </td>
		<td width="30" valign="top" align="center">
		    <?php if( $sf_user->isAuthenticated() == true && $sf_user->hasCredential('Admin') ): ?>
	            <?php echo link_to(image_tag('note_edit.png', array('style' => 'border:0px;', 'title' => __('Attach big banner'))), 'banner/create?banner_type=' . $banner_type . '&obj_id=' . $sf_params->get('id')); ?>
			<?php endif;?>
		</td>
      </tr>
    </table>
  </td>
<?php endif; ?>
